package com.thunisoft.incremental.common.enums;

/**
 * TaskStatusEnum
 *
 * @author Zhang Xin
 * @version v1.0
 * @since 2020/3/27 17:50
 */
public enum TaskStatusEnum {
    RUN(1,"运行中"), WAIT(-1,"等待"), SUCCESS(2,"成功"), FAIL(3,"失败");
    private int code;

    private String name;

    TaskStatusEnum(int code,String name) {
        this.code = code;
        this.name = name;
    }

    public int getCode() {
        return code;
    }

    public String getName() {
        return name;
    }
}
